Kotlin hashCode() method template for code generation scripts
Important note: if you put lazily loaded entity into collection before it's properties are initialized and then update it, different hashCode() values are generated and object becomes not equal itself before update, therefore it's recommended to use constant hashCode() result in entity classes